package com.shishuo.cms.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.shishuo.cms.entity.Order;

@Repository
public interface OrderDao {

	/**
	 * 添加订单
	 * 
	 * @param Order
	 * @return Integer
	 * 
	 */
	public int insert(Order Order);
	
	public int update(Order Order);

	/**
	 * 删除订单
	 * 
	 * @param OrderId
	 * @return Integer
	 * 
	 */
	public int deleteOrder(@Param("id") int	id);

	/**
	 * 
	 * @param id
	 * @return
	 */
	public Order selectById(@Param("id") int id);

	/**
	 * 获取所有订单
	 * 
	 * @param offset
	 * @param rows
	 * @return List<Order>
	 * 
	 */
	public List<Order> getAllList(Map<String, Object> map);
	
	public int getAllListCount();

}
